package nku.csc364;

/* Raj Akula
 * Person.java
 * 
 * Class to hold fields of a person accordingly 
 * setter methods are there but have been commented out due to 
 * non use in this specific program 
 * 
 * *** didn't put alot of comments since you said you don't
 * *** need it.
 */

public class Person {
	private String firstName;
	private String lastName;
	private String ssn;
	private String phoneNo;
	private char gender;
	private String dob;
	
	//Constructor build an object and set the values
	public Person(String firstName, String lastName, String ssn,
		String phoneNo, char gender, String dob) {
		
		this.firstName = firstName;
		this.lastName = lastName;
		this.ssn = ssn;
		this.phoneNo = phoneNo;
		this.gender = gender;
		this.dob = dob;
	}
	
	//Setter and Getter methods for the Person class 
	public String getPhoneNo() {
		return phoneNo;
	}
	
	public String getFirstName() {
		return firstName;
	}
	
	public String getLastName() {
		return lastName;
	}
	
	public String getSsn() {
		return ssn;
	}
	
	public char getGender() {
		return gender;
	}
	
	public String getDob() {
		return dob;
	}
	
	public void setSsn(String ssn){
		this.ssn = ssn;
	}
	
	/*
	 * Setter methods are commented out because 
	 * not used for this program 
	 * 
	public void setPhoneNo(String phoneNo) {
		this.phoneNo = phoneNo;
	}
	
	public void setFirstName(String firstName) {
		this.firstname = firstName;
	}
	
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	
	public void setSsn(String ssn) {
		this.ssn = ssn;
	}
	
	public void setGender(String gender) {
		this.gender = gender;
	}
	
	public void setDob(String dob) {
		this.dob = dob;
	}
	 */
	
	// Overiding the toString() method
	public String toString(){
		
		return lastName + "\t" + firstName + "\t" + ssn + "\t" + phoneNo + "\t" + gender + "\t" + dob ;
	}
	
}	
